public class Question5 {

    public static void main(String[] args) {

        int width = 17;
        char[][] board = new char[width][width];

        // 填充 + 号
        for(int row=1; row<width; row++) {  //行
            for(int col=1; col<width; col++) {  //列
                board[row][col] = '+';
            }
        }

        // 填充首行，遍历列
        for(int col=1; col<width; col++) {
            if(col < 11)
                board[0][col] = (char)(47 + col);
            else
                board[0][col] = (char)(86 + col);
        }

        // 填充首列，遍历行
        for(int row=1; row<width; row++) {
            if(row < 11)
                board[row][0] = (char)(47 + row);
            else
                board[row][0]= (char)(86 + row);
        }

        // 填充头角
        board[0][0] = ' ';


        // 打印
        for(int row=0; row<board.length; row++) {
            for(int col=0; col<board[row].length; col++) {
                System.out.print(board[row][col] + "   ");
            }
            System.out.println();
        }

    }
